Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title: {
      type: String,
      value: ''
    },
    showArrow: {
      type: Boolean,
      value: true
    },
    through : {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    height: 20
  },

  ready(){
    this.getHeight()
  },

  /**
   * 组件的方法列表
   */
  methods: {
    back: function(){
      this.triggerEvent('back')
    },
    getHeight(){
      let res = wx.getSystemInfoSync();
      let statusHeight = res.statusBarHeight;
      this.setData({
        height: statusHeight
      })
    }
  }
})
